import request from '@/utils/request'

// 查询成品库列表
export function listProduct_store(query) {
  return request({
    url: '/mes/product_store/list',
    method: 'get',
    params: query
  })
}

// 查询成品库详细
export function getProduct_store(id) {
  return request({
    url: '/mes/product_store/' + id,
    method: 'get'
  })
}

// 新增成品库
export function addProduct_store(data) {
  return request({
    url: '/mes/product_store',
    method: 'post',
    data: data
  })
}

// 修改成品库
export function updateProduct_store(data) {
  return request({
    url: '/mes/product_store',
    method: 'put',
    data: data
  })
}

// 删除成品库
export function delProduct_store(id) {
  return request({
    url: '/mes/product_store/' + id,
    method: 'delete'
  })
}

// 导出成品库
export function exportProduct_store(query) {
  return request({
    url: '/mes/product_store/export',
    method: 'get',
    params: query
  })
}